projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8cebc12
)
x11: Use g_error_matches()
author
Benjamin Otte
<otte@redhat.com>
Sun, 20 Mar 2016 04:43:02 +0000
(
05:43
+0100)
committer
Benjamin Otte
<otte@redhat.com>
Sun, 20 Mar 2016 04:43:02 +0000
(
05:43
+0100)
Fixes accidentally assigning values.
http://www.viva64.com/en/b/0383/
gdk/x11/gdkselection-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkselection-x11.c
b/gdk/x11/gdkselection-x11.c
index b84be26664df8442e3f4e139ef22fb2b9170e78b..c4e73227e3d10333fb226bb657865b053465b4f7 100644
(file)
--- a/
gdk/x11/gdkselection-x11.c
+++ b/
gdk/x11/gdkselection-x11.c
@@
-738,8
+738,7
@@
gdk_x11_display_utf8_to_compound_text (GdkDisplay *display,
if (!locale_str)
{
- if (!(error->domain = G_CONVERT_ERROR &&
- error->code == G_CONVERT_ERROR_ILLEGAL_SEQUENCE))
+ if (!g_error_matches (error, G_CONVERT_ERROR, G_CONVERT_ERROR_ILLEGAL_SEQUENCE))
{
g_warning ("Error converting from UTF-8 to '%s': %s",
charset, error->message);